package com.mdd.common.enums.settle;

/**
 * TODO
 *
 * @Description
 * @Author 幻速
 * @Date 2023/11/13 19:15
 **/
public enum OrderSettleStatusEnum {
    //分账状态: 0、待分账 1、分账成功 2、分账失败
    TO_DISTRIBUTED(0, "待分账"),
    DISTRIBUTED_SUCCESS(1, "分账成功"),
    DISTRIBUTED_FAIL(2, "分账失败");

    /**
     * 构造方法
     */
    private final int code;
    private final String msg;
    OrderSettleStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取状态码
     *
     * @author fzr
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author fzr
     * @return String
     */
    public String getMsg() {
        return this.msg;
    }
}
